package com.treehouse.gui;

import java.awt.Component;

import javax.swing.JPanel;

import com.treehouse.service.application.IApplicationService;

public abstract class ViewControllerComponent {

	private JPanel view;
	private IApplicationService applicationService;

	public ViewControllerComponent(IApplicationService applicationService) {
		this.applicationService = applicationService;
		this.view = new JPanel();
	}

	public Component getComponent() {
		return this.view;
	}

	protected JPanel getView() {
		return view;
	}

	protected void setView(JPanel view) {
		this.view = view;
	}

	protected IApplicationService getIApplicationService() {
		return applicationService;
	}

	protected void setIApplicationService(IApplicationService applicationService) {
		this.applicationService = applicationService;
	}

}
